#include "SchroederReverb.h"
#include "lang/StringFormat.hpp"
using namespace yzrilyzr_lang;
namespace yzrilyzr_dsp{
	SchroederReverb::SchroederReverb(){
		registerParamTime("Delay1", &delayTime1);
		registerParamTime("Delay2", &delayTime2);
		registerParamTime("Delay3", &delayTime3);
		registerParamTime("Delay4", &delayTime4);
		registerParamNormal01("Feedback", &feedback);
		registerParamNormal01("RT60", &rt60);
		registerParamNormal01("WetRatio", &wetRatio);
		registerSub("APF1", &apf1);
		registerSub("APF2", &apf2);
	}

	String SchroederReverb::toString()const{
		return StringFormat::object2string("SchroederReverb", delayTime1, delayTime2, delayTime3, delayTime4, feedback, rt60, apf1.delayTimeMs, apf2.delayTimeMs, apf1.gain, apf2.gain, wetRatio);
	}
}